package com.yc.star;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication(scanBasePackages = {"不存在的包","com.yc.damai.web"})
@EnableFeignClients
public class StarIndexApplication implements WebMvcConfigurer {
    public static void main(String[] args) {
        SpringApplication.run(StarIndexApplication.class,args);
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**")
                .addResourceLocations("file:D:\\远程仓库\\YC135\\star-companion\\star\\star-parent" +
                        "\\star-index\\src\\main\\resources\\static/");
    }
}
